import type { Directive } from 'vue';

const setReportView = (el:Element, dir: any) => {
  el.setAttribute('data-report-view', JSON.stringify(dir.value));
};

export default {
  mounted(el, dir) {
    setReportView(el, dir);
  },
  updated(el, dir) {
  }
} as Directive;
